package com.cacshanghai.cac_oa_client.ui;

import com.cacshanghai.cac_oa_client.beans.Leave;

import java.util.ArrayList;
import java.util.List;


/**
 * Created by geyh on 2016/5/27.
 */
public class NoPassLeaveFragment extends LeaveListBaseFragment {

    protected List<Leave> getData() {
        List<Leave> leaveList = new ArrayList<>();
        leaveList.add(new Leave("2016-04-02", "事假", "请事假", "09:00~18:00", "待审批"));
        leaveList.add(new Leave("2016-04-03", "事假", "请事假", "09:00~18:00", "待审批"));
        leaveList.add(new Leave("2016-04-04", "事假", "请事假", "09:00~18:00", "待审批"));
        leaveList.add(new Leave("2016-04-04", "事假", "请事假", "09:00~18:00", "待审批"));
        leaveList.add(new Leave("2016-04-04", "事假", "请事假", "09:00~18:00", "待审批"));
        leaveList.add(new Leave("2016-04-04", "事假", "请事假", "09:00~18:00", "待审批"));
        leaveList.add(new Leave("2016-04-04", "事假", "请事假", "09:00~18:00", "待审批"));
        leaveList.add(new Leave("2016-04-04", "事假", "请事假", "09:00~18:00", "待审批"));
        leaveList.add(new Leave("2016-04-04", "事假", "请事假", "09:00~18:00", "待审批"));
        leaveList.add(new Leave("2016-04-04", "事假", "请事假", "09:00~18:00", "待审批"));
        leaveList.add(new Leave("2016-04-04", "事假", "请事假", "09:00~18:00", "待审批"));
        leaveList.add(new Leave("2016-04-04", "事假", "请事假", "09:00~18:00", "待审批"));
        return leaveList;
    }

    public void addNewLeave() {
        leaveList.add(0 ,new Leave());
        refrashDate();
    }
}
